using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmRcCatalogDtls")]
    public class RcCatalogDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "CatDtlsId", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public int CatDtlsId { get; set; }

		[ForeignKey("Cat")]
		[DataMember, Display(Name = "CatId", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> CatId { get; set; }

		[DataMember, Display(Name = "CatNo", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> CatNo { get; set; }

		[ForeignKey("TmpEmp")]
		[DataMember, Display(Name = "TmpEmpId", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> TmpEmpId { get; set; }

		[ForeignKey("FieldPos")]
		[DataMember, Display(Name = "FieldPosId", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> FieldPosId { get; set; }

		[ForeignKey("CatStatus")]
		[DataMember, Display(Name = "CatStatusId", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> CatStatusId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.RcCatalogDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.RcCatalog  Cat { get; set; }

		public virtual Employee TmpEmp { get; set; }

		public virtual FieldPosition FieldPos { get; set; }

		public virtual RcCatalogStatus CatStatus { get; set; }

    }
}